<?php /* Smarty version 2.6.13, created on 2011-08-02 00:26:19
         compiled from manage_news.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 't', 'manage_news.tpl', 16, false),array('function', 'cycle', 'manage_news.tpl', 32, false),)), $this); ?>
<div class="wrap">
<table width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td width="54px" height="43px" class="fr_lefttop"></td>
	<td height="43px" class="fr_centertop" ></td>
	<td width="48px" height="43px" class="fr_righttop"></td>
	</tr>
	<tr>
	<td width="54px" class="fr_leftmiddle" >&nbsp;</td>
	<td class="fr_centermiddle">
<?php if ($_COOKIE['message'] == null): ?>
	<div id="ajaxResponse1" class="ajaxResponse"></div>
<?php else: ?>
	<div id="ajaxResponse1" class="ajaxResponse fade" style="display:block"><?php if ($_COOKIE['message'] != NULL):  echo $_COOKIE['message'];  endif; ?></div>
<?php endif; ?>
<h2><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>News<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></h2>
	<p>
		<a href="?mod=<?php echo $_GET['mod']; ?>
&sub1=news&act=addnews">
				<b><?php $this->_tag_stack[] = array('t', array('escape' => false)); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Create News &raquo;<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></b></a>
	</p>
	<table class="widefat">
		<thead>
		<tr>
			<th scope="col" width="50px" style="text-align: center"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>ID<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th scope="col" width="120px" style="text-align: center"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Image<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th scope="col" width="200px"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>News title<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
	        <th colspan="2" style="text-align: center"><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Action<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?></th>
		</tr>
		</thead>
		<tbody id="newstable">
			<?php $_from = $this->_tpl_vars['ALLNEWS']['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['product'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['product']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['product']['iteration']++;
?>
				<tr id="news-<?php echo $this->_tpl_vars['item']->news_id; ?>
" class="<?php echo smarty_function_cycle(array('values' => ",alternate"), $this);?>
">
					<th scope='row' style='text-align: center'><?php echo $this->_tpl_vars['item']->news_id; ?>
</th>
					<td style="text-align: center"><img src="<?php echo $this->_tpl_vars['ALLNEWS']['PATH'];  echo $this->_tpl_vars['item']->news_image; ?>
" alt="" border="0" /></td>
					<td><?php echo $this->_tpl_vars['item']->news_title; ?>
</td>
					<td style="text-align: center">
                    	<a href="?mod=<?php echo $_GET['mod']; ?>
&sub1=news&act=editnews&id=<?php echo $this->_tpl_vars['item']->news_id; ?>
" 
							class='edit'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
                        </a>
                    </td>
					<td style="text-align: center">
                    	<a onclick="onDeleteNews('?mod=<?php echo $_GET['mod']; ?>
&sub1=news', '<?php echo $this->_tpl_vars['item']->news_id; ?>
', '<?php echo $this->_tpl_vars['item']->news_image; ?>
', 'ajaxResponse1')" 
							class='delete'><?php $this->_tag_stack[] = array('t', array()); $_block_repeat=true;smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Delete<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_t($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
                   		</a>
                    </td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table>
	  <?php if ($this->_tpl_vars['ALLNEWS']['TOTALPAGE'] > '0'): ?>
    <div>			
             		
              <div style="text-align:right; float:right" ><?php echo $this->_tpl_vars['ALLNEWS']['FIRST']; ?>
 <?php echo $this->_tpl_vars['ALLNEWS']['PRE']; ?>
&nbsp;<?php echo $this->_tpl_vars['ALLNEWS']['LISTPAGE']; ?>
  <?php if ($_SESSION['LC_ALL'] == 'en'): ?>Pages<?php else: ?>Trang<?php endif; ?> &nbsp; <?php echo $this->_tpl_vars['ALLNEWS']['TOTALPAGE']; ?>
 &nbsp;                   
                  &nbsp;<?php echo $this->_tpl_vars['ALLNEWS']['NEXT']; ?>
 <?php echo $this->_tpl_vars['ALLNEWS']['LAST']; ?>
         
              </div>
              <div style="clear:both"></div>		
    </div>	     
    <?php endif; ?>
	</td>
	<td width="48px" class="fr_rightmiddle"></td>
	</tr>
	<tr>
	<td width="54px" height="60px" class="fr_leftbot" ></td>
	<td height="60px" class="fr_centerbot"></td>
	<td width="48px" height="60px" class="fr_rightbot" ></td>
	</tr>
</table>
</div>